package com.gxa.service.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.service.entity.Services;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.service.vo.ServiceTypeVo;
import com.gxa.service.vo.allServiceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Entity com.gxa.service.entity.Service
 */
@Repository
public interface ServicesMapper extends BaseMapper<Services> {

    int updateIsRecommend(@Param("id") Integer id, @Param("isRecommend") Integer isRecommend);

    int updateState(@Param("id") Integer id,@Param("state") Integer state);

    Page<allServiceVo> findService(@Param("value") Integer value, @Param("page") Page<allServiceVo> page);

    Page<allServiceVo> findServiceByTime(@Param("dataF") String dataF, @Param("dataL")String dataL, @Param("page")Page<allServiceVo> page);

    List<ServiceTypeVo> findServiceType();

    List<ServiceTypeVo> findSetService(Integer id);

    Services findServiceById(Integer id);

    int addService(Services services);

    List<allServiceVo> findService1();
}




